package cn.cdutetc.library.entity.dto;

import lombok.Data;

/**
 * 图表数据DTO
 */
@Data
public class ChartDataDTO {
    
    /**
     * 标签/名称
     */
    private String label;
    
    /**
     * 数值
     */
    private Object value;
    
    /**
     * 日期（用于趋势图）
     */
    private String date;
    
    public ChartDataDTO() {}
    
    public ChartDataDTO(String label, Object value) {
        this.label = label;
        this.value = value;
    }
    
    public ChartDataDTO(String label, Object value, String date) {
        this.label = label;
        this.value = value;
        this.date = date;
    }
}
